package org.openrdf;

import org.openrdf.rio.RDFParserRegistry;
import org.openrdf.rio.RDFWriterRegistry;
import org.openrdf.rio.n3.N3ParserFactory;
import org.openrdf.rio.n3.N3WriterFactory;
import org.openrdf.rio.ntriples.NTriplesParserFactory;
import org.openrdf.rio.ntriples.NTriplesWriterFactory;
import org.openrdf.rio.rdfxml.RDFXMLParserFactory;
import org.openrdf.rio.rdfxml.RDFXMLWriterFactory;
import org.openrdf.rio.trig.TriGParserFactory;
import org.openrdf.rio.trig.TriGWriterFactory;
import org.openrdf.rio.trix.TriXParserFactory;
import org.openrdf.rio.trix.TriXWriterFactory;
import org.openrdf.rio.turtle.TurtleParserFactory;
import org.openrdf.rio.turtle.TurtleWriterFactory;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class Activator implements BundleActivator {

	/*
	 * (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
	 */
	public void start(BundleContext context) throws Exception {
		RDFWriterRegistry.getInstance().add(new TurtleWriterFactory());
		RDFWriterRegistry.getInstance().add(new TriGWriterFactory());
		RDFWriterRegistry.getInstance().add(new TriXWriterFactory());
		RDFWriterRegistry.getInstance().add(new NTriplesWriterFactory());
		RDFWriterRegistry.getInstance().add(new RDFXMLWriterFactory());
		RDFWriterRegistry.getInstance().add(new N3WriterFactory());

		RDFParserRegistry.getInstance().add(new TurtleParserFactory());
		RDFParserRegistry.getInstance().add(new TriGParserFactory());
		RDFParserRegistry.getInstance().add(new TriXParserFactory());
		RDFParserRegistry.getInstance().add(new NTriplesParserFactory());
		RDFParserRegistry.getInstance().add(new RDFXMLParserFactory());
		RDFParserRegistry.getInstance().add(new N3ParserFactory());
	}

	/*
	 * (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
	 */
	public void stop(BundleContext context) throws Exception {
	}

}
